* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.2.2022 	13:18:36 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.2.2022 	13:18:36 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.2.2022 	13:18:36 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.2.2022 	13:18:36 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.2.2022 	13:18:36 	lx 	(1. Application process)

  database connect time: 0.0240 seconds. 	14.2.2022 	13:18:36 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.2.2022 	13:18:36 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.2.2022 	13:18:36 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.2.2022 	13:18:36 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.2.2022 	13:18:36 	lx 	(1. Application process)

* preference 'system/nc_server_start.json' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.2.2022 	13:18:36 	lx 	(1. Application process)

Tcp server 2 starting. 	14.2.2022 	13:18:36 	_lx_SERVER 	(5. Tcp Server 2)

Field has not been translated: [Product]Reserved. 	14.2.2022 	13:18:36 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Product]Fixed. 	14.2.2022 	13:18:36 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Product]Available. 	14.2.2022 	13:18:36 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Work_Phase_Actual]Previous_Track_Time. 	14.2.2022 	13:18:36 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Work_Order_Schedule]Can_Be_Manufactured. 	14.2.2022 	13:18:36 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Work_Order_Schedule]Manufacturing_State. 	14.2.2022 	13:18:36 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

  database connect time: 0.0125 seconds. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0129e5ef10, size: 400. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

All plugins have been loaded. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/path.json. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

Mac address: f84d896921dc. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

--- server started in 0.0648 seconds, 2022-02-14 13:18:38, used memory 3114.6 kb --- 	 5. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	14.2.2022 	13:18:38 	lx 	(5. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-02-14 13:20:49
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 1034
Content-Uncompressed-Length: 1659

LZ4. 	14.2.2022 	13:20:49 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	14.2.2022 	13:20:49 	lx 	(5. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	14.2.2022 	13:20:49 	lx 	(5. Tcp Server 2)

  database connect time: 0.0049 seconds. 	14.2.2022 	13:20:49 	lx 	(5. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	14.2.2022 	13:20:49 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv LEFT OUTER JOIN company co ON co.company_id = inv.company_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	14.2.2022 	13:20:49 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 1. answer time: 00:00:00.12855
  
SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id
 FROM invoice inv
 LEFT OUTER JOIN company co ON co.company_id = inv.company_id
 WHERE inv.company_id IN ('1057')
 ORDER BY inv.invoice_id. 	14.2.2022 	13:20:49 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv LEFT OUTER JOIN company co ON co.company_id = inv.company_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	14.2.2022 	13:20:49 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv LEFT OUTER JOIN company co ON co.company_id = inv.company_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	14.2.2022 	13:20:49 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' INTO :_lx_atExe1
 - original query: SELECT pr.product_id, pr.transfer_id, pr.name, pr.explanation, pr.sales_price__unit, pr.stock_balance__unit, pr.minimum_stock, pr.ean_code, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7
 - result _lx_atExe1 size: 4099, first value: '0002'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	14.2.2022 	13:20:52 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 -- tcp answer 4, send count: 4, loop count: 3, bytes sent 320528 / 320528, 0 remaining, total send time 1359 µs. 	14.2.2022 	13:20:52 	lx 	(5. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' INTO :_lx_atExe1
 - original query: SELECT pr.product_id, pr.transfer_id, pr.name, pr.explanation, pr.sales_price__unit, pr.stock_balance__unit, pr.minimum_stock, pr.ean_code, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7
 - result _lx_atExe1 size: 4099, first value: '0002'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	14.2.2022 	13:20:55 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 -- tcp answer 6, send count: 4, loop count: 3, bytes sent 320535 / 320535, 0 remaining, total send time 1270 µs. 	14.2.2022 	13:20:55 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv LEFT OUTER JOIN company co ON co.company_id = inv.company_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	14.2.2022 	13:21:08 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' INTO :_lx_atExe1
 - original query: SELECT pr.product_id, pr.transfer_id, pr.name, pr.explanation, pr.sales_price__unit, pr.stock_balance__unit, pr.minimum_stock, pr.ean_code, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7
 - result _lx_atExe1 size: 4099, first value: '0002'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	14.2.2022 	13:21:30 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 -- tcp answer 8, send count: 4, loop count: 3, bytes sent 320537 / 320537, 0 remaining, total send time 1577 µs. 	14.2.2022 	13:21:30 	lx 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co LEFT OUTER JOIN terms_of_payment top ON top.terms_of_payment_id = co.terms_of_payment_id WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.transfer_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.www, top.net_days, co.telephone_number, co.fax_number, co.info FROM company co  LEFT OUTER JOIN terms_of_payment top ON top.terms_of_payment_id = co.terms_of_payment_id  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_alExe1,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	14.2.2022 	13:21:40 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' INTO :_lx_atExe1
 - original query: SELECT pr.product_id, pr.transfer_id, pr.name, pr.explanation, pr.sales_price__unit, pr.stock_balance__unit, pr.minimum_stock, pr.ean_code, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7
 - result _lx_atExe1 size: 4099, first value: '0002'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	14.2.2022 	13:21:45 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 -- tcp answer 10, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 320547, 238887 remaining, total send time 73 µs. 	14.2.2022 	13:21:45 	lx 	(5. Tcp Server 2)

 -- tcp answer 10, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 320547, 157227 remaining, total send time 52387 µs. 	14.2.2022 	13:21:45 	lx 	(5. Tcp Server 2)

 -- tcp answer 10, send result: -1, send count: 3, loop count: 5, bytes sent 244980 / 320547, 75567 remaining, total send time 104527 µs. 	14.2.2022 	13:21:45 	lx 	(5. Tcp Server 2)

 -- tcp answer 10, send count: 4, loop count: 6, bytes sent 320547 / 320547, 0 remaining, total send time 159659 µs. 	14.2.2022 	13:21:45 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv LEFT OUTER JOIN company co ON co.company_id = inv.company_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	14.2.2022 	13:28:40 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv LEFT OUTER JOIN company co ON co.company_id = inv.company_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	14.2.2022 	13:28:40 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv LEFT OUTER JOIN company co ON co.company_id = inv.company_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.transfer_id, inv.state, inv.company_id, co.transfer_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.total_amount, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  LEFT OUTER JOIN company co ON co.company_id = inv.company_id  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_atExe5,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	14.2.2022 	13:28:40 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

Created document to path: Mac:Users:pasi:4D:mg_v19:Manageri_v19:Resources:Preference:db_connection_preference.json. 	14.2.2022 	13:35:40 	_lua_ PREFERENCE_TO_FILE 	(6. tbl_ 5)

Created document to path: Mac:Users:pasi:4D:mg_v19:Manageri_v19:Resources:Lua:preference:db_connection_preference.json. 	14.2.2022 	13:35:40 	_lua_ PREFERENCE_TO_FILE 	(6. tbl_ 5)

*** tcp close for sock 75, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.2.2022 	13:45:04 	lx 	(5. Tcp Server 2)

closing socket '75'. 	14.2.2022 	13:45:04 	lx 	(5. Tcp Server 2)

*** tcp close for sock 76, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	14.2.2022 	13:45:04 	lx 	(5. Tcp Server 2)

closing socket '76'. 	14.2.2022 	13:45:04 	lx 	(5. Tcp Server 2)

 -- Server statistics --
answerCount:          13
poll.fd_count:        1
pollCount:            71160
pollInCount:          14
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   15280
totalBytesSent:       347395. 	14.2.2022 	13:45:04 	lx 	(5. Tcp Server 2)

warning: socket type 'number' is not a table, socket number: 77
. 	14.2.2022 	13:45:04 	lx 	(5. Tcp Server 2)

closing socket '77'. 	14.2.2022 	13:45:04 	lx 	(5. Tcp Server 2)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0129e5ef10. 	14.2.2022 	13:45:04 	lx 	(5. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0129e5ef10, size: 400. 	14.2.2022 	13:45:04 	lx 	(5. Tcp Server 2)

--- server stopped ---. 	14.2.2022 	13:45:04 	lx 	(5. Tcp Server 2)

finalizer: free p1 	 cdata<void *>: 0x0129e5ef10. 	14.2.2022 	13:45:04 	lx 	(5. Tcp Server 2)

